<%--
  Created by IntelliJ IDEA.
  User: 胡斌
  Date: 2021/6/27
  Time: 10:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>添加商品</title>
</head>
<body>
<sf:form modelAttribute="goods" action="${pageContext.request.contextPath }/goods/save4jsr303" method="post">
  <fieldset>
    <legend> 添加一件商品 </legend>
    <P>
      <label>商品名:</label>
      <sf:input path="gname" />
    </p>
    <p>
      <label>商品详情:</label>
      <sf:input path="gdescription" />
    </p>
    <P>
      <label>商品价格:</label>
      <sf:input path="gprice" />
    </p>
    <P>
      <label>创建日期:</label>
      <sf:input path="gdate" />
      (yyyy-MM-dd)
    </p>
    <p id="buttons">
      <input id="reset" type="reset">
      <input id="submit" type="submit" value="添加">
    </p>
  </fieldset>
  <!-- 取出所有验证错误 -->
  <sf:errors path="*" />
</sf:form>
</body>
</html>
